package com.humanres.activity;

import android.widget.TextView;

import com.ciko.code.adapter.WorkFlowAdapter;
import com.ciko.code.base.BaseActicity;
import com.ciko.code.bean.RecodeListEntity;
import com.ciko.code.http.Req.GetOverTimeFlowsBySelfEty;
import com.ciko.code.views.PullListView;
import com.mywork.R;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/2/16.
 */
public class ResReviewDetailActivity extends BaseActicity {

    private GetOverTimeFlowsBySelfEty getOverTimeFlowsBySelfEty;

    private TextView tvnameOverWork;
    private TextView tvStateOverWork;
    private TextView tvcreateTimeOverWork;
    private TextView tvStartTimeOverWork;
    private TextView tvEndTimeOverWork;
    private TextView tvDayCountOverWork;
    private TextView tvResonOverWork;

    private PullListView lv_workFlow;
    private WorkFlowAdapter workFlowAdapter;
    private List<RecodeListEntity> recodeListEntityList = new ArrayList<>();

    @Override
    protected void initTopBar() {
        getOverTimeFlowsBySelfEty = (GetOverTimeFlowsBySelfEty) getIntent().getSerializableExtra("GetOverTimeFlowsBySelfEty");
        setTitle("报销申请");
        enableNavLeftImg();
    }

    @Override
    protected void initLayout() {
        setContentView(R.layout.activity_res_item_review_detail);
    }

    @Override
    protected void initView() {
        tvResonOverWork = (TextView) findViewById(R.id.tvResonOverWork);
        tvDayCountOverWork = (TextView) findViewById(R.id.tvDayCountOverWork);
        tvEndTimeOverWork = (TextView) findViewById(R.id.tvEndTimeOverWork);
        tvStartTimeOverWork = (TextView) findViewById(R.id.tvStartTimeOverWork);
        tvcreateTimeOverWork = (TextView) findViewById(R.id.tv_createTimeOverWork);
        tvStateOverWork = (TextView) findViewById(R.id.tvStateOverWork);
        tvnameOverWork = (TextView) findViewById(R.id.tv_nameOverWork);

        lv_workFlow = (PullListView) findViewById(R.id.lv_workFlow);
    }

    @Override
    protected void initAdapter() {
//        workFlowAdapter = new WorkFlowAdapter(this, recodeListEntityList, R.layout.item_list_res_work_flow, getOverTimeFlowsBySelfEty.getWorkFlow());
//        lv_workFlow.setAdapter(workFlowAdapter);
    }

    @Override
    protected void initDates() {
//        tvnameOverWork.setText(getOverTimeFlowsBySelfEty.getUserName());
//        tvcreateTimeOverWork.setText(DateUtil.longToDate(getOverTimeFlowsBySelfEty.getWorkFlow().getCreateTime(), 4));
//        tvStartTimeOverWork.setText(DateUtil.longToDate(getOverTimeFlowsBySelfEty.getOverTime(), 4));
//        tvEndTimeOverWork.setText(DateUtil.longToDate(getOverTimeFlowsBySelfEty.getEndTime(),4));
//        tvDayCountOverWork.setText(getOverTimeFlowsBySelfEty.getOverTimeDays() + "");
//        tvResonOverWork.setText(getOverTimeFlowsBySelfEty.getOverReasom());
//        tvStateOverWork.setText(getOverTimeFlowsBySelfEty.getWorkFlow().getNodeName());
    }

    @Override
    protected void initListener() {

    }
}
